<template>
    <van-field :name="data.fieldName" :label="data.label">
        <template #input>
            <van-checkbox-group v-model="data.value">
                <van-checkbox :checked-color="data.style.checkedColor" shape="square" style="margin-bottom: 8px"  v-for="(item, index) in data.options" :key="index" :name="index">{{ item.label }}</van-checkbox>
            </van-checkbox-group>
        </template>
    </van-field>
</template>

<script>
    export default {
        props: {
            data: Object,
        }
    }
</script>